#!/usr/bin/python3
# -*- coding: UTF-8 -*-
import requests
from bs4 import BeautifulSoup
url ='http://www.dianping.com/shop/G1JL5JxBRsl0vxxw'
headers = {
	'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36',
    "Referer": "http://www.dianping.com/wuhan/ch10"
}
rsp = requests.get(url,headers=headers)
soup = BeautifulSoup(rsp.text, 'html.parser')
with open('temp.html', 'wb') as fd:
    for chunk in rsp.iter_content(1024):
        fd.write(chunk)
data = soup.find_all('p',class_='desc')
# http://s3plus.meituan.net/v1/mss_73a511b8f91f43d0bdae92584ea6330b/font/ca0d83b4.woff
